package com.example.websocket;

import com.example.websocket.websocket.WsServer;
import com.example.websocket.word.SpringTest;
import org.apache.activemq.command.ActiveMQQueue;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.jms.annotation.EnableJms;

@SpringBootApplication
//@ComponentScan("com.example.websocket.xml")
//@EnableJms
public class WebsocketApplication {

//    @Bean
//    public ActiveMQQueue queue() {
//        return new ActiveMQQueue("park1");
//    }

    public static void main(String[] args) {
        SpringApplication.run(WebsocketApplication.class, args);
//        int port = 8887;
//        WsServer s = new WsServer(port);
//        s.start();
    }

}
